package site.wanjiahao.message.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import site.wanjiahao.message.AbstractResponseMessage;

@Data
@NoArgsConstructor
public class RpcResponseMessage extends AbstractResponseMessage {

    /**
     * RPC返回的类型
     */
    private Object result;

    /**
     * 请求序列id，异步获取结果
     */
    private Long requestId;

    @Override
    public int getMessageType() {
        return RPC_RESPONSE_ID;
    }
}
